Repository navigation
Restyle the Android app like OpenCode Desktop - #21
Merged
Merged
Conversation
Prototype only (branch ui-brand-prototype): evaluates replacing the Android-native Material 3 look with the OpenCode desktop/web design system (packages/ui, oc-2 v2 tokens). Deliberately breaks AGENTS.md's "Visuals are Android-native" rule on this branch only. - Bundle Inter (variable, desktop weights 440/530/600/670) and IBM Plex Mono (Regular/Medium/SemiBold) as res/font; OFL licences in docs/licenses/. OpenCodeFonts.system/monospace now resolve to them; direct FontFamily.Monospace call sites use OpenCodeFonts.monospace so code and tool output get Plex Mono. - OpenCodeTextStyles: desktop scale adapted to sp (body 15/23, subheadline 14, footnote 13, headline 16 medium, titles medium with tight tracking). Still sp, so font scaling is unchanged. - OpenCodeRadius/OpenCodeShapes: desktop radii (4/6/8/10/12, sheets 16). - AppTheme.OpenCode now uses BrandPalette (desktop v2 neutrals, monochrome contrast accent, blue links, desktop syntax/diff colours) and is the default theme instead of System (replaces Material You dynamic colour as the default; System is still selectable). - toColorScheme: surfaceTint transparent, so surfaces stay flat (no tonal tint). - Buttons: 48dp (touch target kept), 8dp radius; secondary is a hairline neutral instead of a tonal fill. Verified: vm.sh assemble; installed on FX_1 and checked home, drawer, transcript, + menu and Settings in light mode.
Restyles the session transcript to the OpenCode desktop's session UI (session-ui message-part.css, markdown.css, basic-tool.css). Behaviour, disclosure motion and TalkBack semantics are unchanged. - Code blocks, tables and opened tool groups: the desktop's inset block (faint fill, hairline border, 8dp corners, 12dp padding) at the prose width instead of iOS's full-bleed band between hairlines (MarkdownBand, TranscriptBand). The band's grow/close reveal still draws to the row's moving edge. Markdown dividers no longer bleed to the screen edges. - Tool rows: a 16dp tool glyph (read/write/edit/terminal/search/web/todo), medium-weight name and muted detail; Used N gets a disclosure chevron. The glyphs are decorative (no contentDescription), row semantics unchanged. - User bubble: desktop radius 10, padding 12x8, max width 82%. - Transcript type: body 15sp, headings 19/17/15 semibold-to-bold, Used N 14sp, code 13sp Plex Mono (tunable defaults; the Tuning Panel can still move them). - TranscriptMetrics radii: card 8, control 6. Verified: vm.sh assemble; on FX_1 opened a live session with markdown, a Kotlin code block and Read/Write/Edit tool calls, expanded Used 3 tools and the Edit row, light and dark.
Restyles the composer and its + menu to the OpenCode desktop's prompt dock (dock-surface.css, actions/submit.css, context-menu.css). Layout, gestures, expansion motion, touch targets and semantics are unchanged. - Composer surface (shared ComposerSurface/callSurface): a flat fill (white / one step above the dark canvas), 1dp hairline ring and a small raised shadow instead of a tonal capsule; corner radius 28 -> 12 (ComposerMetrics and ComposerTunables). Call cards keep callSurface without a ring. - Send/trailing control: rounded 8dp square on the monochrome accent, like the desktop submit button, instead of a circle (48dp target unchanged). - + menu: 12dp panel with hairline border and soft shadow, 4dp row inset, bare 20dp glyphs in secondary text instead of tinted discs, 15sp medium labels. Verified: vm.sh assemble; on FX_1 checked the composer with a draft and the + menu open, light and dark.
Restyles the session drawer and the home project list to the OpenCode desktop sidebar (app tab-nav.css, project-session-row). Rows keep their 44dp height, gestures, pin drag and semantics. - Drawer canvas: the desktop sidebar's bg-deep (canvasWeak), a step off the session canvas (new OpenCodeColors.drawerCanvas; System theme keeps canvas). - Selected row: a faint pressed overlay in a 6dp radius instead of Material's secondary-container capsule indicator; row radius 10 -> 6, row titles 14sp. - New Session and the Settings/call group: neutral 8dp buttons with a hairline ring instead of tonal capsules; New Session label 14sp medium. - Home project list and its search field: 8dp highlights instead of capsules. Verified: vm.sh assemble; on FX_1 checked the drawer, home project list and footer in light mode.
Restyles the first-run connection screen (AppView ConnectionView) to the OpenCode desktop look; copy, actions, order and semantics are unchanged. - Pairing actions: 8dp-radius buttons at 48dp; Enter a Server Manually is a neutral hairline button, Scan Pairing Code the monochrome primary; labels 15sp medium instead of 17sp semibold. - Copy-command boxes: the desktop code block (faint fill, hairline border) in IBM Plex Mono instead of Berkeley Mono on a tonal fill (Berkeley Mono stays for the wordmark only). Verified: vm.sh assemble; on FX_1 cleared app data and checked the welcome screen in light mode, then connected through the manual server form.
Restyles the Settings chrome shared by every Settings page (SettingsRows) to the OpenCode desktop's cards and lists; rows, targets and semantics unchanged. - Section cards: flat fill inside a 1dp hairline border, 10dp radius. - Dividers: an inset 1dp hairline (desktop list.css), replacing Material 3 Expressive's 2dp segmented gap and its corner-rounding path (removed). - Settings type: the app's Inter scale (row titles 15sp medium, summaries 13sp, headers 14sp medium; large title 24sp) instead of Material's default Roboto Typography(). Verified: vm.sh assemble; on FX_1 opened Settings from the drawer, light mode.
Phase 0 of the full-app desktop restyle. - BrandPalette (light): darken just enough for WCAG AA 4.5:1 on white, #FAFAFA and the #EEEEEE inline-code fill. Diverges from the desktop: tertiary #808080 -> #6E6E6E, link #3B5CF6 -> #3A5BF6, syntax keyword #C83D8B -> #C83B8A, syntax string #198B43 -> #188540, diff-added text -> #17813E. Light swatch ring #C7C7C7 so the theme swatch keeps its step. - New OpenCodeColors.strongBorders: hairlines (colors.border, M3 outlineVariant) use borderStrong under Increase Contrast or Android's High contrast text setting (rememberHighContrastText, Settings.Secure high_text_contrast_enabled, live). Desktop hairlines are under 3:1. - Hand-tinted outline@alpha hairlines on buttons, the dock, the + menu and the drawer footer now use colors.border, so they follow strongBorders. - Deeper Markdown headings (H4+) stay at H3's 15sp instead of 17. - Tests updated to the design values, iOS names kept, each with a comment that the visuals diverge from iOS on purpose: ThemePaletteTests (oklchDerived…), MarkdownBlockTests (refinedStandardTypography…, inlineCodeInHeadings…, accessibilityDynamicTypeScales…), DrawerSpacingTests (defaultsAreWhatShipped). Verified: vm.sh check :core :feature:transcript :feature:drawer green.
Phase 1 of the full-app desktop restyle. Visual only: no behaviour, copy, semantics or touch-target changes. - core/ui OpenCodeSurfaces: the desktop floating surface (white in light, one step above the canvas in dark), hairline ring, dialog/popover shapes and shadows; OpenCodeColors.floating; Modifier.openCodeHairline. - OpenCodeAlertDialog wraps Material's AlertDialog (floating fill, hairline, 12dp corners, no tonal elevation, 16sp medium title, 14sp body). Every AlertDialog call site (19, all modules) now uses it; buttons, dismissal and semantics are Material's. - toColorScheme (curated themes; System/Material You unchanged): surfaceContainerLow and surfaceContainer are the floating surface, so every bottom sheet, dropdown menu and tooltip is a flat desktop panel. - Shapes: extraSmall 4 -> 6 (desktop input and context-menu radius). - OpenCodeShape.control (8dp) replaces glass capsules on controls: drawer search and button, Catch Up undo, composer pills, photo pill, run-error actions, share and browser toolbars, image viewer toolbar, retry label, + menu album picker. True capsules (grabbers, dots) stay. - OpenCodeIconButton's Circle style is the desktop neutral icon button: a 10dp rounded square on the base surface with a hairline (filled when tinted). Name kept so call sites match iOS. - Server form: Connect is an 8dp, 48dp desktop contrast button. - Model picker (One Picker): floating fill, hairline, popover shadow; radii 12 (composer) / 16 instead of 28/32/46; autocomplete highlight concentric with the 12dp composer. - Session sheet cards: 10dp radius with hairline ring. - Request dock: 12dp corners shared with the composer; header row and × keep their place; × is a rounded square; the Always Allow scope popover is a desktop popover. Permission actions: 8dp; Allow Once is the neutral hairline button. Queued messages: Send Now is a rounded square. Verified: vm.sh assemble; on FX_1 checked the model picker, session ⋮ menu, session sheet, delete confirmation dialog, drawer and its search field. vm.sh check :feature:composer :core green.
Phase 2 of the full-app desktop restyle. Visual only. - Session header: the scrolled bar is the pane's canvas over a hairline (the desktop title bar) instead of a surfaceContainer fill. The ⋮ context gauge is unchanged. - Composer pills, the server connection pill (reconnecting / failed / sign-in failed) and jump-to-latest: floating fill, hairline ring, small raised shadow, 8dp control radius instead of tonal capsules and circles. - Composer banner: the dock's 12dp radius, floating fill and hairline. - Background-work capsule and panel: floating fill, hairline, popover/raised shadows; panelRadius 28 -> 12. BackgroundWorkTests' glassRadiusFitsCapsuleAndPanelThroughoutMorph now expects 12 (comment notes the deliberate divergence from iOS). - Catch Up: cards 16dp (iOS 40) with an 8dp flying shadow (was 16); Undo is the neutral hairline button. - Drawer: server-switch note is a desktop card (10dp, hairline); search's Cancel is a rounded-square icon button. - Permission diff preview gets a hairline ring. - Transcript images, attachments and errors already follow TranscriptMetrics (8/6dp) and OpenCodeShape.control from the earlier phases. Verified: vm.sh assemble; on FX_1 checked the session header, jump-to-latest and Catch Up. vm.sh check :feature:session :feature:drawer green.
Phase 3 of the full-app desktop restyle. Visual only. - Voice: call cards and the provider failure card draw callSurface with the hairline ring; their corners are the dock's 12 (was 28) and 10 (was 22); the expansion clip follows ComposerMetrics.cornerRadius. The live-call rows are a floating card with a hairline. The floating call orb's round controls are unchanged (they're the call's own gestures). - In-app browser: its toolbar, back and ask bar are floating surfaces with a hairline and a raised shadow instead of tonal elevation 3; the back button is a 10dp rounded square, the ask bar 12dp instead of a capsule. - Image bento tiles: TranscriptMetrics.cardCornerRadius (8, was 14). The full-screen media viewer stays dark; its toolbar uses the control shape (phase 1). - Share sheet: the composer is the desktop dock (12dp, floating fill, hairline); previews and the text card 10dp. - Ask OpenCode and the widget configuration dialogs: the desktop dialog (floating fill, hairline, 12dp, no tonal elevation). Verified: vm.sh assemble; on FX_1 opened the share sheet (SEND intent), Ask OpenCode and a session's link chip.
Phase 4 of the full-app desktop restyle. Visual only. - Every Material Button / FilledTonalButton / OutlinedButton without an explicit shape now passes OpenCodeShape.control (8dp): Material's buttons default to full capsules and there's no theme-level button shape. Call sites: share, onboarding playground, voice key/provider, voice call rows, pairing scanner (shape only), draft projects, shell output. - Server Details and its trays (MCP servers, skills, tiles): 12/10dp corners instead of iOS's 26/22/16, grouped-row corners included. - What's New cards 12/10dp; onboarding playground panels 12dp. - Welcome (preview) "other ways" card: floating fill with hairline, 10dp. - Appearance: the OpenCode (desktop) theme is the default since the token commit; curated themes keep their colours and get the desktop type, radii and flat surfaces from the theme; System (Material You) stays selectable and keeps Material's container colours. - Devtools: token level only (no component changes). Verified: vm.sh assemble; on FX_1 checked Appearance, Server Details, Voice, What's New and Experimental.
Phase 5 of the full-app desktop restyle (token level only). - Glance control widgets (Start Call, Open Session, New Session) render with the chosen curated theme's colours (the OpenCode desktop palette by default) via glance-material3 ColorProviders from OpenCodeColors; the System theme keeps the wallpaper's dynamic colours. Corners 28 -> 12 (desktop dock). Glance can't load custom fonts, so widget text stays the system font. - Notifications and the session live-activity notification are unchanged: the system draws them, and their only app colour is the run tint. Verified: vm.sh assemble.
Phase 6 of the full-app desktop restyle. - AGENTS.md: "Visuals are Android-native: Material 3 Expressive … SF → Roboto" is replaced by "Visuals follow the OpenCode desktop design system": Inter / IBM Plex Mono, desktop type in sp, flat hairline surfaces, small radii, the desktop palette as default; behaviour (Material structure, back, sheets, IME, TalkBack, 48dp, font scaling) stays Android and flows and copy still follow iOS. Design-system and Buttons bullets name OpenCodeSurfaces, OpenCodeAlertDialog and OpenCodeShape.control. - docs/parity/core-ui.md: a "Visual divergence" section (fonts, palette and its AA adjustments, container mapping, strongBorders, radii, surfaces, controls); Glass/TapTarget rows and the design-system API updated; the appearance-theme default is noted as oc-2. Verified: docs only.
#14) into ui-brand-prototype One conflict, in MarkdownBand.kt: FB-03 registers the code/table horizontal scroller with the drawer pan (drawerPanHorizontalScroller); the brand branch moved that scroller inside the desktop's inset bordered block and dropped the gutter bleed. Resolved by keeping the brand visuals and the FB-03 registration on the horizontally scrolling node inside the block (the gutter's LocalTranscriptLayoutTuning import stays dropped). The other FB-03 registrations (UserAttachmentViews, FileAttachmentViews, MermaidDiagramView, SessionViewAttachments, ComposerView) merged cleanly and still sit on their scrolling nodes.
Material draws an unchecked Switch's border and thumb in colorScheme.outline, which the brand maps to the desktop's border-strong (#CCCCCC on white, #454545 on the #2E2E2E dark card): under 2:1, so an off switch nearly vanished in dark and was faint in light. New OpenCodeSwitchDefaults.colors() (core/ui/OpenCodeSurfaces.kt): for the curated themes the unchecked border and thumb are colors.tertiaryText, 3:1 or more against every surface a switch sits on and its own track (light #6E6E6E 4.4-5.1:1, dark #8A8A8A 3.3-5.2:1); the System theme keeps Material's colours. All 7 Switch call sites pass it (Settings rows, session sheet Always Notify, What's New, request review, devtools x3). Hairline borders are unchanged. Verified: vm.sh assemble; on FX_1 checked Voice and Experimental in light and dark (ui-brand/full/switch-contrast.png).
…er Send) Feedback on the before/after video Ryan posted on X. Visual only. - Copy-command boxes (connection screen, Welcome preview): a clearly filled background again, as main's: new OpenCodeSurfaces.commandFill, desktop bg-layer-03 #EEEEEE in light and the shell block's bg-layer-02 #2E2E2E in dark, with the hairline; Plex Mono, 8dp radius and the copy icon kept. The connection screen's box sets its content colour explicitly (the fill matches surfaceVariant, whose content colour is the secondary text). The New Server sheet has no command box (its hint is inline text), so it's unchanged. - Neutral/secondary buttons: a light neutral fill plus the hairline instead of the base surface (new OpenCodeSurfaces.neutralFill = surfaceContainerHighest, #EEEEEE / #3A3A3A; labels 15.6:1 / 9.7:1): OpenCodeSecondaryButton (Paste), Enter a Server Manually, drawer New Session and the Settings/call group, drawer search and its Cancel, Catch Up Undo, permission Allow Once, and OpenCodeIconButton's neutral style. - Send: its visible face is 40dp (was 34, main's circle is 34), still a rounded square, glyph 20dp; the 48dp target is unchanged. Other trailing controls keep 34. ComposerControlLabel takes a faceDiameter. - Button radius unchanged (the designer liked it). Verified: vm.sh check green (all modules); on FX_1 took main 35515ed / brand-before / brand-after stills of the welcome screen, the composer with text and the drawer footer in light and dark (ui-brand/full/feedback-*.png).
Replace every Material TopAppBar / CenterAlignedTopAppBar / LargeFlexibleTopAppBar with one desktop-style bar in core/ui (OpenCodeTopBar.kt), matching the desktop's settings header and Ryan's session header: flat canvas, 52 dp row, 16 sp medium title, bare back arrow (48 dp target), and a 1 dp bottom hairline instead of Material's tonal scrolled colour. - OpenCodeTopBar: start or centred title, navigation and actions slots; the hairline fades in on the effects spring once content scrolls under it (pinned behaviour), or always shows without a scroll behaviour. - OpenCodeLargeTopBar: Settings pages' large title (title1) under the row; it keeps Material's exitUntilCollapsed behaviour, scrolls away under the bar and fades the small title and hairline in. Heading semantics follow the visible title. - OpenCodeTopBarBackButton: the shared Back chevron. - Used by SettingsPageScaffold, Appearance › Themes, the pairing scanner (no hairline over the camera), Voice call history and replay, the pasted-text viewer, the agent file viewer (no hairline over media) and devtools. Copy, actions and back handling are unchanged. - core-ui.md: Visual divergence and design-system API entries. Verified: vm.sh check :core :feature:settings :feature:voice :feature:composer :feature:media :devtools; on the emulator, Settings root, Appearance, Themes, Experimental (collapse and re-expand on scroll, recorded), Voice › Call History, light and dark, against v0.3.8.
The Wisp call orb was the last call surface still drawn as iOS glass: a dark blue-black disc, round LEDs with halos, a Fresnel rim with a specular line, and a large drop shadow, the same in light and dark. Only the raster shader and its inputs change. The cell kernel, its colours, the sim, personality, states, timings and reduce-motion handling are untouched, so the orb moves exactly as on iOS. - WispOrbPalette (new) passes the theme to the shader: plate (canvas in dark, code band in light), hairline (border) and alert (destructive). - The plate follows the theme and is opaque; the rim is a 1 dp hairline that tints toward whoever is speaking on their side. - LEDs are the desktop Soft Radar spinner's rounded squares, no halos. - Shadow is the desktop's small raised one; ambient glow is reduced. - Light themes print the LEDs as darker ink in the same hue, so listening, thinking and speaking stay distinguishable. - Confirm and mute tint toward the theme's red. Verified: scripts/check.sh :feature:voice on the Android VM; floating and expanded orb recorded on the emulator in light and dark through the lab scene cycle (debug.opencode.lab_floating_scenes) and a scripted demo call (debug.opencode.voice_demo), against v0.3.8 as the baseline.
Switches and sheet drag handles were still Material 3 (capsule switch with a checkmark thumb; 32 x 4 dark handle bar). They now follow the desktop design system (packages/ui forms/switch and resize-handle): - core/ui OpenCodeFormControls.kt: OpenCodeSwitch, a rounded-square 40 x 24 dp track with a hairline and an 18 dp square thumb, no checkmark, 150 ms slides, half opacity when disabled, press widens the thumb like the desktop's hover. Same contract as Material's Switch (Role.Switch, null onCheckedChange when the row toggles, 48 dp target), colours from OpenCodeSwitchDefaults so off keeps 3:1 contrast and the System theme keeps Material You. - OpenCodeSheetHandle: Material's DragHandle drawn as a 40 x 4 dp tertiaryText pill, so the sheet keeps its band and TalkBack expand/collapse/dismiss. OpenCodeBottomSheet's default and every ModalBottomSheet use it; the custom photo and model-picker grabbers take its size and colour. - Settings rows, What's New, the session sheet and Request Review use OpenCodeSwitch. Devtools is untouched. - docs/parity/core-ui.md: Visual divergence and design-system API rows. Visual only; no behaviour or copy changes. Verified: vm.sh check :core :feature:settings :feature:session :feature:composer :feature:system :app (assemble, lint, unit tests) passes; emulator (FX_3) against v0.3.8: Settings > Experimental switches light and dark, toggling, New Server and model picker sheet handles.
Off switches read as heavy grey blobs (a dark tertiaryText thumb filling most of the track), so a Settings page of off rows looked disabled. OpenCodeSwitch now follows the desktop's off state: a quiet surfaceContainerHighest track and a light thumb (with a faint edge and small shadow in light mode), with the track outline carrying the 3:1 contrast (row colour 85% towards tertiaryText; full under high contrast; Material outline under System). Corners are concentric (7 dp track, 4 dp thumb, 3 dp inset). On stays primary/onPrimary. OpenCodeSwitchDefaults (devtools) is unchanged. Bottom sheets take OpenCodeSheetDefaults.shape: 12 dp top corners, the desktop panel radius, instead of Material's extraLarge 16 dp, so they sit with the 8 dp controls inside. OpenCodeBottomSheet applies it on both its modal and in-window paths; direct ModalBottomSheet callers pass it. Verified: $V check :core :feature:settings :feature:session :feature:composer :feature:system :app; emulator screenshots of Settings (light, dark), a toggle recording and the New Server sheet at 16 vs 12 dp.
Reverts the round-1 orb (rounded-square LEDs on a theme plate), which read as a coarse LED panel and washed out on light themes. The Wisp is drawn as on iOS again (fine round dots, halos, ambient glow, rim light); only its plate is a neutral graphite (#141415, a dark speaker grille in both themes) instead of the blue-black glass, and its drop shadow is lighter on light themes (0.30 vs 0.42). One `plate` uniform carries both (WispOrbPalette). The call card was the page colour in light mode, so it disappeared. It now sits one step off the page (VoiceCallSurfaceDefaults.card: 5% toward the text colour in light, 6% in dark) with a hairline and a soft 20 dp dropShadow that fade as the card shrinks to the call button. The grown card's backing no longer uses Material's surfaceContainer. Mute/Pause/Camera/Add/End are 12 dp rounded squares with a fill and hairline (ink when on, the theme red for End); the mute badge and session tag get the same hairline. Behaviour, states, timings, sizes, touch targets and semantics are unchanged. Verified: full scripts/check.sh on the Android VM; on the emulator (demo call and floating scene cycle) the orb, floating bubble and expanded card in light and dark, compared against v0.3.8.
Adds OpenCodeTextField and OpenCodeSearchField (core/ui/OpenCodeTextField.kt), the desktop text input (packages/ui forms/text-input) built on BasicTextField: label above the field instead of Material's floating label, 48 dp minimum height, 8 dp corners, 1 dp outline border, white fill with a 1 dp shadow in light and a raised grey in dark, a 1.5 dp primary focus ring, an error ring plus note (TalkBack error semantics) and half-opacity disabled. Replaces Material's OutlinedTextField/TextField in the New Server form and header rows, session rename, voice key, server name drafts, server details code, Ask OpenCode, and the settings, delegator, server tray, widget, draft project and share search fields. The model picker's pill search rows now use the same container, so they match the forms. Bare fields inside their own containers (composer, drawer search, browser bar, request review, share dock) are unchanged. Labels, placeholders, IME options and behaviour are unchanged. docs/parity/core-ui.md updated. Verified: full `scripts/check.sh` on the dev VM (BUILD SUCCESSFUL); emulator checks of the New Server form (idle, focus, header row, and error/disabled via a temporary build) and the model sheet, in light and dark, against v0.3.8.
# Conflicts: # docs/parity/core-ui.md
# Conflicts: # docs/parity/core-ui.md
Pairing scanner: flat dark bar with plain white Cancel/Paste labels, a rounded-square viewfinder (16 dp sheet radius, 3 dp white stroke, scene dimmed slightly outside it), and the hint on a flat hairline panel with IBM Plex Mono for the command (was BerkeleyMono). Composer camera: controls stay translucent dark circles, now with a faint white hairline so they hold up over bright scenes; the lens picker drops its chip-in-a-chip container; the camera message uses the panel radius and a hairline, its actions plain white labels. Onboarding: the playground's command chip, check badge, mock composer and back button use the desktop surfaces (neutral fill + hairline, control radii). The welcome illustration's phone now depicts the restyled Android app (flat header, desktop greys, 10 dp bubbles, hairline composer) instead of the iOS glass chrome. The dot-field illustrations are unchanged. Visual only; camera behaviour, flows and copy unchanged. Verified with `vm.sh check :feature:settings :feature:composer` and emulator screenshots in light and dark against v0.3.8 (shots/brand/screens 09-15).
Shared design tokens for the polish pass, kept apart from the component fixes so other brand branches can pick them up on their own: - OpenCodeColors.signal (new): unread and new-item marks. The brand accent is neutral grey, so the drawer's unread dot and Catch Up glyph lost their colour; the desktop draws its unread dot in --v2-background-bg-accent (blue). Curated themes use the theme's link colour (BrandPalette #3A5BF6 light, #A2BCFF dark); System uses the dynamic primary. - OpenCodeColors.danger (new): failure text and glyphs, the desktop's --v2-state-fg-danger (BrandPalette diffRemovedText: #B82D35 light, #F17471 dark) instead of systemRed, which looked harsh on the flat surfaces. destructive is unchanged (still systemRed for delete, end call and red fills). System keeps systemRed for both. - Dark floating fill: OpenCodeColors.floating and the curated themes' surfaceContainer/surfaceContainerLow move from the code band (#1C1C1C on the #161616 canvas, nearly invisible) to darkFloatingFill, the code band a third of the way to the user bubble (about #222222). Light stays the canvas; System's dark floating fill is unchanged. This lifts every Material sheet, menu and tooltip in dark, and every OpenCodeSurfaces.color user. Gallery lists signal and danger; core-ui.md describes all three. Verified: $V build (assembleDebug) on the VM; screens checked on the emulator in the following commits.
The composer's plus menu was a 28 dp tonal slab with no edge: in dark its fill nearly matched the page, in light it was a flat grey block, rounder than every other menu. It now uses the same floating surface as the session's ⋮ menu: OpenCodeSurfaces fill, hairline border, popover shadow, and the desktop popover radius (OpenCodeRadius.card, 10 dp). Rows, icons, motion and copy are unchanged. Verified: $V build; plus menu checked light and dark on the emulator.
In the desktop inset block a three-column table showed only two columns: the third sat entirely past the block's edge with no peek, and its wrapped cells made the last row taller than its visible text, which read as an empty band under the table. Columns now shrink toward their longest word to fit the block when their natural widths don't (as the desktop's browser table layout does); only a table that still can't fit scrolls, with the existing edge fade. Table cells also drop tnum: Inter's tabular set widens the hyphen (hyphen.tf, 1328 vs 942 units), which opened a gap in "mid-sentence". Left-aligned cells don't line digits up, so nothing is lost. Verified: $V build; the markdown checkpoint's table checked light and dark on the emulator.
The connection card kept iOS's 26 dp corners and had no border, so in light it vanished into the page and in both themes it looked like a different family from the 10 dp hairline groups under it. It now takes the card radius (OpenCodeRadius.card) and the same 1 dp border; the scope well's radius follows (card radius minus its inset). Verified: $V build; Settings checked light and dark on the emulator.
- Search, Cancel Search, New Session and the Settings/call group used the strong neutral fill with 8-10 dp corners, which read as heavy keys. They now use the floating surface (OpenCodeSurfaces fill, hairline, soft raised shadow) at the panel radius (12 dp). - The unread dot, What's New dot, Catch Up glyph and Catch Up's unread dots use OpenCodeColors.signal (blue, as v0.3.8 and the desktop's unread dot) instead of the neutral accent, which made them grey. Selection tints and the search cursor keep the accent. Verified: $V build; drawer checked light and dark on the emulator.
- Request cards and the composer (VoiceCallSurfaceDefaults.color, which also fills the call card) use OpenCodeColors.floating, so in dark they sit a shade above the page instead of matching it. - Deny/Dismiss in an answer row is the 8 dp control shape, like Allow, instead of a capsule. - The question card's close X is a ghost glyph (no filled square). - Failed tools, run errors and the failed-row glyph use OpenCodeColors.danger (desktop danger red) instead of systemRed. - Tool input/output boxes inside an opened tool group take the canvas fill, so in light they stand off the group's faint band. - An empty composer's Send is a neutral face with a secondary arrow instead of the full disc at 30 % opacity, which washed out on white; it cross-fades to the real Send on the same timing. - Welcome's two pairing buttons are semibold, as before the restyle. No behaviour or copy changes. Verified: $V build; each screen checked light and dark on the emulator.
Tuning panel, its collapsed pill and edge tab use the desktop floating surface (OpenCodeSurfaces colour + hairline border, panel/control radii, a softer shadow) instead of Material tonal elevation and capsules. The problem report's cards are flat hairline panels, and the DevTools bar actions are OpenCodeIconButtons. Developer-only and visual only. Verified with vm.sh check :devtools.
# Conflicts: # feature/settings/src/main/kotlin/ai/opencode/feature/settings/connection/ConnectionCard.kt
On the light card, Pause, Camera and Add (iOS placeholders) took iOS's 0.35 opacity on the whole control, so their plate and hairline nearly vanished and they looked broken rather than unavailable. The glyph still takes iOS's dim; the plate and hairline now take only 40% of it, and the light controls' hairline is a touch stronger (18% toward the text colour, was 15%). End's red is unchanged. Opacity values, enabled state and semantics are as before. Verified: full scripts/check.sh on the Android VM (merged ui-brand-prototype); the expanded call card in light and dark on the emulator.
Shrinking columns all the way to their longest word made a four-column
table wrap "Users saw" word by word ("mid-" / "sentence") with tall rows.
Each column now keeps a 112 dp floor (or its natural width if smaller),
so the table fits what it can and the next column peeks in under the
edge fade to show it scrolls.
Verified: built on the Android VM, typography checkpoint in session-lab,
light and dark; Change and Users saw read cleanly, Fix peeks in.
Inter's tight line height set the summary (OpenCode, Off) right against the row title. A 2 dp gap separates them as v0.3.8 did. Visual only. Verified: built on the Android VM, Settings main page in light and dark.
The desktop design system has no orb, so there is nothing to restyle: the Wisp goes back to v0.3.8's drawing (iOS's blue-black glass plate and its 0.42 drop shadow in both themes). Removes WispOrbPalette and the plate uniform; the call card and control restyle stay. Parity docs now say the orb is unchanged from iOS. Verified: scripts/check.sh :feature:voice :core on the Android VM; the expanded call card in light and dark on the emulator.
OpenCodeSheetDefaults.shape now uses OpenCodeRadius.sheet (16 dp) on the top corners instead of the 12 dp panel radius, per Dan's pick between the two options. Every bottom sheet takes this shape (OpenCodeBottomSheet and the direct ModalBottomSheet call sites), so they all change together. core-ui.md parity notes updated. Verified: $V check :core (BUILD SUCCESSFUL); sheets checked on the emulator in light and dark.
Dan picked the bold corners over the full outline. The viewfinder is now four round-capped 5 dp marks with 44 dp arms that follow the window's 16 dp desktop radius. They sit just outside the window, on the scene dimmed to 40 % black, so they stay legible over bright scenes without a halo. The camera, bar, hint panel and scanning behaviour are unchanged. Verified with vm.sh check :feature:settings.
The welcome scene drew an iPhone (Dynamic Island, iPhone status bar) and its story asked for an iPhone download button, in an Android app. The phone is now an Android phone: slimmer bezel (0.02 x width), squarer corners (0.11 x width), a centred punch-hole camera, an Android status bar (9:30, wifi, signal, battery) and a shorter gesture bar. The prompt, reply and the site mock's button now say Android. Android-only divergence, noted in the parity rows. Verified: $V check :feature:settings; welcome preview on the emulator in light and dark.
This was referenced Nov 10, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restyles the Android app with the OpenCode Desktop design system. Builds on #19 and finishes the parts that were still Material.
core/ui: title bars, switches, sheet handle, and text and search fields.Behaviour, flows, copy and accessibility are unchanged, and touch targets stay at least 48 dp. This is Android only; iOS keeps its look.
Verified: the full
scripts/check.shpasses. Every changed screen was compared against v0.3.8 in light and dark.